package com.example.team.service.Imp;

import com.example.team.dao.IPropertyDao;
import com.example.team.entity.Property;
import com.example.team.service.IPropertyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;
//服务接口规范的方法实现
//编写者：沈超
// 时间：2023/10/31
@Component
public class IPropertyServiceImpl implements IPropertyService {
    @Autowired
    private IPropertyDao iPropertyDao;
    @Override
    public int insertProperty(Property property) {
        return iPropertyDao.insertProperty(property);
    }

    @Override
    public int deleteProperty(Property property) {
        return iPropertyDao.deleteProperty(property);
    }

    @Override
    public List<Property> getAllProperty(Property property) {
        return iPropertyDao.getAllProperty(property);
    }

    @Override
    public int updateProperty(Property property) {
        return iPropertyDao.updateProperty(property);
    }

    @Override
    public Property getProperty(Property property) {
        return iPropertyDao.getProperty(property);
    }
}
